package xiaolong.zhou.spring_demo.Pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RealUser {
    @TableId(value = "1",type = IdType.AUTO)
    private Integer id;
    @NotEmpty(message = "请填写真实姓名")
    private String realName;
    private Integer userId;
    @NotEmpty(message = "请填写证件号")
    private String documents;
    @NotEmpty(message = "请填写性别")
    private Short sex;
    @NotEmpty(message = "请填写年龄")
    private Short age;
    @JsonIgnore
    private String deleteTime;
    private String createTime;
}
